# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-aiomultiprocess
_pkgname=aiomultiprocess
pkgver=0.9.1
pkgrel=3
pkgdesc='Asyncio version of the standard multiprocessing module.'
arch=('any')
url='https://pypi.org/project/aiomultiprocess/#files'
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('306585f0e91b2f7491883c509d2f1d4a5a159b54f1d033e5eafca42f3bf4eef7212e17e456aa0cbe95b083d11af63df9171dd097a0e76626eeabeffede6911a6')

build() {
  cd "$_pkgname-$pkgver"

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd "$_pkgname-$pkgver"

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

